import request from '@/utils/request'
// import store from '@/store'
// 登录api
export const sysLogin = (data) => {
  return request({
    url: '/sys/login',
    method: 'post',
    data,
    noToken: true
  })
}
// 获取用户基本资料
export const sysProfile = () => {
  return request({
    url: '/sys/profile',
    method: 'post'
    // headers: {
    //   Authorization: `Bearer ${store.state.login.token}`
    // }
  })
}

// 获取 员工数据包括头像
export const sysUser = (id) => {
  return request({
    url: `/sys/user/${id}`
  })
}
